<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Models\Currency;
use App\Models\Order;

/**
 * 成交
 */
class CountController extends Controller
{
    public function __construct()
    {
        view()->share('menu', 'count');
    }

    public function count_deal(Request $request)
    {
        $cid = Currency::where('name_en', 'USDT')->value('id');
        $currs = Currency::where('id','<>',$cid)->get();

        return view('admin/count/index',compact('currs'));
    }
}
